package com.quark;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 微服务服务端
 * @author YiTang
 *
 */
@Configuration
@ComponentScan
@EnableAutoConfiguration
//让当前应用服务使用eureka服务器
//其中application.properties配置文件中
//spring.application.name是指定进行服务注册时该服务的名称
//@EnableDiscoveryClient
@EnableEurekaClient
public class Application {

	public static void main(String[] args) {
        SpringApplication.run(Application.class);  
    }
}
